<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  $_SESSION['s_urlRedirectDir'] = $_SERVER['REQUEST_URI'];
  header("Location:checkLogin.php");
}
else
{
	$quantity = '';
	$selectQunt = "SELECT quantity
	                 FROM itemStock
	                WHERE itemId = ".$_REQUEST['itemId'];
	$selectQuntRes = mysql_query($selectQunt);
	if($row = mysql_fetch_array($selectQuntRes))
	{
		$quantity = $row['quantity'];
	}
	echo $quantity;
}
?>